//
//  AppDelegate.m
//  Sirtet
//
//  Created by Conor Taylor on 03/09/2012.
//  Copyright (c) 2012 Conor Taylor. All rights reserved.
//

#import "AppDelegate.h"
#import "Drawing.h"
#import "Constants.h"

@implementation AppDelegate

@synthesize btnPlay, drawView;


- (void)main {
    for (int x = 1; x <= currentShape; x++) {
        [drawView manipulateShape:x withAngle:shapeAngle[x]];
    }
    
    //if (/* previous shape has hit floor/other shape*/) {
        //currentShape += 1;
        [drawView createShape:currentShape withType:shapeType[0]];
    //}
}

- (IBAction)pushPlay:(id)sender {
    
}

- (void)dealloc {
    [super dealloc];
}

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    mainTimer = [NSTimer scheduledTimerWithTimeInterval:0.05 target:self selector:@selector (main) userInfo:nil repeats:YES];
    drawView = [[Drawing alloc] init];
}

@end
